﻿using System.Windows.Controls;
using CncConvProg.ViewModel.EditWorkDialog.InputProfileViewModel;

namespace CncConvProg.View.Controls
{
    /// <summary>
    /// Interaction logic for ProfileEditorView.xaml
    /// </summary>
    public partial class ProfileEditorView : UserControl
    {
        public ProfileEditorView()
        {
            InitializeComponent();
        }

        private void UserControl_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            var vm = DataContext as ProfileEditorViewModel;

            if(vm != null)
            {
                vm.HandleKeyDown(e);
            }
        }

    }
}
